package com.jikangjun.disk.file.service.impl;

import com.jikangjun.disk.file.dao.FileDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class FileDaoService {
    
    @Autowired
    @Qualifier("daoFileDao") // 指定要注入的Bean名称
    private FileDao daoFileDao;
    
    // 使用daoFileDao的方法
    public void updateFileName(String fileId, String fileName) {
        daoFileDao.updateFileName(fileId, fileName);
    }
}